home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / config / crossfire.cf next >
Text File  |  1996-07-24  |  6KB  |  301 lines

  1. /*
  2.  * This file will be included by various Imakefiles in the directories
  3.  * below this.
  4.  * Before compiling, you might need to change some of the default
  5.  * variables.  Read through this file and change what is appropriate
  6.  * for your system.
  7.  */
  8.  
  9. #define MAKE
  10. #include "../include/version.h"
  11. #undef MAKE
  12.  
  13. #ifndef Concat
  14. #if __STDC__ && !defined(UnixCpp)
  15. #define Concat(a,b)a##b
  16. #else
  17. #define Concat(a,b)a/**/b
  18. #endif
  19. #endif
  20.  
  21. /* Openwindows 3.0 seems to be missing this */
  22. #ifndef NullParameter
  23. #define NullParameter
  24. #endif
  25.  
  26.  
  27. /* if [ -d ] or [ ! -d ] causes make to fail, define this as - */
  28. #ifndef DirFailPrefix
  29. #define DirFailPrefix
  30. #endif
  31.  
  32.  
  33. #ifndef MakeDir
  34. #define MakeDir(dir) DirFailPrefix@if [ -d dir ]; then set +x; \        @@\
  35.                 else (set -x; $(MKDIRHIER) dir); fi
  36. #endif /* MakeDir */
  37.  
  38.  
  39.  
  40. /*
  41.  * package making
  42.  */
  43.  
  44. VERSION = crossfire-/**/Version/**/PatchLevel
  45. /*VERSION = crossfire-0.90.4*/
  46. #define ArchiveNoArch /* no archetype hierachy to packet */
  47. /* #define ArchiveNoMaps /* no map hierachy to packet (no effect yet,9310) */
  48.  
  49. /* CrossFire is only defined in sub-directories. Only in subdirectories is
  50.  * the include path right so that ../ has precedence over config/
  51.  * Luckily we don't need ../crosssite.def in the top directory.
  52.  */
  53. #ifdef CrossFire
  54. #ifdef AIXArchitecture
  55. #include "../config/crosssite.def"
  56. #else
  57. #include <crosssite.def>
  58. #endif
  59. #endif
  60.  
  61. MANSUFFIX = 6
  62. MANPATH = /usr/local/man /* Comment this away if you install as root */
  63.  
  64. #ifdef CManPath
  65. MANPATH = CManPath
  66. #endif
  67. #ifdef CManSuffix
  68. MANSUFFIX = CManSuffix
  69. #endif
  70.  
  71. /*
  72.  * Leave CDebug uncommented if you only want to play, not debug.
  73.  */
  74. #ifdef CDebug
  75. #ifdef HasGcc
  76. /* Gcc is nice.  Lets us use both the -g and -O flags
  77.  */
  78. DEBUGFLAGS = -g -DDEBUG -O /* define if you want to get useful corefiles */
  79. #else
  80. DEBUGFLAGS = -g -DDEBUG /* define if you want to get useful corefiles */
  81. #endif
  82. #endif
  83.  
  84. #ifdef CProf
  85. #ifdef HPArchitecture
  86. DEBUGFLAGS = -g -DDEBUG -p -y    /* For studying performance with prof */
  87. #else
  88. DEBUGFLAGS = -static -g -DDEBUG -pg -O     /* For studying performance with prof */
  89. #endif
  90. #endif
  91.  
  92. /* Use this, since CDEBUGFLAGS will be used in both the link
  93.  * and normal compile phase.
  94.  */
  95. CDEBUGFLAGS = $(DEBUGFLAGS) $(EXTRA_FLAGS)
  96.  
  97. #ifndef NoLongJumps
  98. NOLONGJUMPS = -DLONGJUMP
  99. #endif
  100.  
  101. #ifdef StupidSunHeaders
  102. STUPIDSUNHEADERS = -DStupidSunHeaders
  103. #endif
  104.  
  105. #ifdef XPM_PIX
  106. #ifdef Xpm_LibDir
  107. /* Concat(-L,Xpm_LibDir) doesn't work right (At least not on my
  108.  * sun 3).  Instead of replacing Xpm_LibDir with its defined value,
  109.  * it instead becomes -LXpm_LibDir.  I don't know if this is because
  110.  * the preprocessor used is the one that comes with standard sun
  111.  * systems, and thus does not understand something, or if there
  112.  * is some other problem.  In any case, by doing it with
  113.  * the following method, it works, and will hopefully work on
  114.  * other systems  -- master@rahul.net
  115.  */
  116. XPM_LIBDIR = -L/**/Xpm_LibDir
  117. #endif
  118. #ifdef Xpm_Include
  119. XPM_DEFINES = -DXpm_Pix -I/**/Xpm_Include
  120. #else
  121. XPM_DEFINES = -DXpm_Pix
  122. #endif
  123. XPM_LIBS = $(XPM_LIBDIR) -lXpm
  124. #endif
  125.  
  126. #ifdef Use_Eutl
  127. #ifdef Eutl_Libdir
  128. EUTL_LIBDIR = -L/**/Eutl_Libdir
  129. #endif
  130. #ifdef Eutl_Include
  131. EUTL_INCLUDES = -I/**/Eutl_Include
  132. #endif
  133. EUTL_LIBS = $(EUTL_LIBDIR) -leutl
  134. EUTL_DEFINES = -DERIC_SERVER=1
  135. #else
  136. EUTL_DEFINES = -DERIC_SERVER=0
  137. #endif
  138.  
  139.  
  140. #ifdef DEBUG_MALLOC
  141. #ifdef DEBUG_DMALLOC
  142. MALLOC_DEFINES = -DDMALLOC
  143. MALLOC_LIBS = /usr/local/lib/libdmalloc.a
  144. #else
  145. MALLOC_DEFINES = -DDEBUG_MALLOC_LEVEL=DEBUG_MALLOC_LEVEL
  146. MALLOC_LIBS = /usr/lib/debug/malloc.o
  147. #endif
  148. #endif
  149.  
  150. #ifdef Extra_Flags
  151. EXTRA_FLAGS = Extra_Flags
  152. #endif
  153.  
  154. EXTRA_DEFINES = $(NOLONGJUMPS) $(STUPIDSUNHEADERS) $(XPM_DEFINES) \
  155.     $(MALLOC_DEFINES)  $(SOUND_DEF) $(EUTL_DEFINES)
  156.  
  157. #ifdef ForceCCOPTIONS
  158. CCOPTIONS = ForceCCOPTIONS /* Some compilers don't like the default -pipe */
  159. #endif
  160.  
  161. /*
  162.  * Which compiler to use.  It must be able to handle ANSI-C.  gcc -ansi is OK.
  163.  * On anything except sun and hp, the lines should ideally stay commented out.
  164.  */
  165. #ifndef ForceCC
  166. #if defined(SunArchitecture)
  167. #ifdef SunHasAcc
  168. CC = acc
  169. CCOPTIONS = -Xc
  170. #else
  171. CC = gcc -ansi -Wall        /* Suns or other systems without ANSI-C */
  172. #endif
  173. #endif
  174.  
  175. #ifdef HPArchitecture
  176. CC = cc                    /* cc on HP-UX, use xmkmf.ansi  */
  177. #if defined (CProf) || defined (CDebug)
  178. CCOPTIONS = -Aa -D_HPUX_SOURCE /* cpp.ansi barfs on -Wp,200000 */
  179. #else
  180. CCOPTIONS = -Aa -D_HPUX_SOURCE +O3 +OS /* cpp.ansi barfs on -Wp,200000 */
  181. #endif
  182. #endif
  183.  
  184. #ifdef MipsArchitecture
  185. /* CC = cc -Olimit 1000        /* Decstations:  -Olimit 1000 is useful */
  186. CC = gcc -ansi -Wall -Dmips -DMIPS    /* const usage in X11R5 xtoolkits.         */
  187. #endif                /* This only affects crossedit, so if you  */
  188.                 /* use /bin/cc you will be able to compile */
  189.                 /* crossfire itself. */
  190.  
  191. #ifdef AlphaArchitecture
  192. CC = cc -std1 -Olimit 1000    /* Alpha */
  193. #endif
  194.  
  195. #ifdef NeXTArchitecture
  196. CC = cc -DNeXT -DBSD
  197. #endif
  198.  
  199. /*
  200.  * #ifdef RsArchitecture
  201.  * CC = cc -D__STDC___
  202.  * #endif
  203.  */
  204.  
  205. #ifdef AIXArchitecture
  206. CC = cc -I../include/
  207. #endif
  208.  
  209. #ifdef SGIArchitecture
  210. CC = cc -ansi
  211. #endif
  212.  
  213. #else
  214. CC = ForceCC
  215. #endif
  216.  
  217. #ifdef HPArchitecture
  218. TARGET = -Dhpux
  219. #endif
  220. #ifdef SGIArchitecture
  221. TARGET = -Dsgi
  222. #endif
  223. #ifdef pyrSVR4
  224. SYS_LIBRARIES=-lsocket
  225. #endif
  226.  
  227. /*
  228.  * Where to put the executable files
  229.  */
  230. #ifdef CBinDir
  231. C_BINDIR = CBinDir
  232. #else
  233. C_BINDIR = $(BINDIR)
  234. #endif
  235.  
  236. /*
  237.  * Define this to affect all directories needed for building Crossfire.
  238.  * This will affect the LIBDIR define in config.h
  239.  */
  240. #ifdef CLibDir
  241. C_LIBDIR = CLibDir
  242. #else
  243. C_LIBDIR = $(LIBDIR)/crossfire
  244. #endif
  245.  
  246. /*
  247.  * Change this to where you want to put the maintainance scripts
  248.  */
  249. ADMDIR = $(C_LIBDIR)/adm
  250.  
  251. /*
  252.  * Change FONTDIR to where you've put the font file.  Remember "mkfontdir".
  253.  */
  254. #ifdef CFontDir
  255. FONTDIR = CFontDir
  256. #else
  257. FONTDIR = FontDir/misc
  258. #endif
  259.  
  260. FONTNAME=crossfire
  261.  
  262. /*
  263.  * If you are using Openwindows, remove the comments around OWIN:
  264.  */
  265. /* #define OWIN */
  266.  
  267. /*
  268.  * pcf or snf, choose one of these.  DECstations use pcf, most others use snf.
  269.  * SGI are also using pcf fonts, so are all R5 servers. :)
  270.  */
  271. #ifdef ForceFont
  272. FONTTYPE=ForceFont
  273. #else
  274. #ifdef UltrixArchitecture
  275. FONTTYPE=pcf
  276. #else
  277. #if ProjectX >= 5
  278. FONTTYPE=pcf
  279. #else
  280. FONTTYPE=snf
  281. #endif
  282. #endif
  283. #endif
  284.  
  285. #ifdef SoundEffects
  286.  
  287. #ifdef RPlayLibDir
  288. RPLAY_LIBDIR = RPlayLibDir
  289. SOUND_LIBS = -L$(RPLAY_LIBDIR) -lrplay
  290. #else
  291. SOUNDS_LIBS = -lrplay
  292. #endif
  293.  
  294. #ifdef RPlayIncDir
  295. RPLAY_INCDIR = -I/**/RPlayIncDir
  296. #endif
  297.  
  298. SOUND_DEF = -DSOUND_EFFECTS
  299. #endif
  300.  
  301.